package com.zmj.framework.authorization.vo;

import lombok.Data;

import java.util.Map;

@Data
public class UserAccess {

    private String[] aud;
    private String[] scope;
    private String[] authorities;

    private String userId;
    private String jobNumber;
    private String username;
    private String user_name;
    private String password;
    private String realName;
    private String orgId;
    private String status;
    private String mobile;
    private Integer sn;
    private String remarks;
    private boolean firstLoginFlag;

//    /**
//     * 用户权限
//     */
//    private Collection<? extends GrantedAuthority> authorities;
    /**
     * 是否已锁定
     */
    private boolean accountNonLocked = true;
    /**
     * 是否已过期
     */
    private boolean accountNonExpired = true;
    /**
     * 密码是否已过期
     */
    private boolean credentialsNonExpired = true;
    /**
     * 认证客户端ID
     */
    private String clientId;

    /**
     * 用户附加属性
     */
    private Map<String, Object> attrs;

    /**
     * 是否启用
     */
    private boolean enabled = true;
}
